<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>我的资料</title>
</head>

<body>
	<!-- 直接主体内容开始  无需要涉及页面布局的  div 等   注意各页面中的Id 保持一致  页面中尽量用 el表达式 与html标签->
<!--   form定义 类似如下:  注意各页面中的Id 保持一致  class="inputForm"-->
	<form id="inputForm" action="user!save.action" method="post"
		class="yform">
		<input type="hidden" name="id" value="${id}" /> <input type="hidden"
			name="expired" value="${expired==null?'1':expired }" /> <input
			type="hidden" name="locked" value="${locked==null?'1':locked }" /> <input
			type="hidden" name="credexpired"
			value="${credexpired==null?'1':credexpired }" /> <input
			type="hidden" name="enable" value="${enable==null?'1':enable }" />
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td>用户名</td>
					<td>${user.userName}</td>
				</tr>
				<tr class="type-text">
					<td>姓&nbsp;&nbsp;名&nbsp;</td>
					<td>${user.name}</td>
				</tr>
				<tr class="type-text">
					<td>性&nbsp;&nbsp;别&nbsp;</td>
					<td>${user.sex}</td>
				</tr>
				<tr class="type-text">
					<td>年&nbsp;&nbsp;龄&nbsp;</td>
					<td>${user.age}</td>
				</tr>
				<tr class="type-text">
					<td>专&nbsp;&nbsp;业&nbsp;</td>
					<td>${user.specialty}</td>
				</tr>
				<tr class="type-text">
					<td>职&nbsp;&nbsp;称&nbsp;</td>
					<td>${user.dutyName}</td>
				</tr>
				<tr class="type-text">
					<td>手&nbsp;&nbsp;机&nbsp;</td>
					<td>${user.mobilePhone}</td>
				</tr>
				<tr class="type-text">
					<td>邮&nbsp;&nbsp;箱&nbsp;</td>
					<td>${user.email}</td>
				</tr>
				<tr class="type-text">
					<td>备&nbsp;&nbsp;注&nbsp;</td>
					<td>${user.remark}</td>
				</tr>
				<tr class="type-check">
					<td>角&nbsp;&nbsp;色&nbsp;</td>
					<td><c:forEach items="${user.roleList }" var="role">
						${role.roleName }&nbsp;
					</c:forEach>
					</td>
				</tr>
			</table>
		</div>
		<div class="type-button">
			<input type="button"  
				onclick="window.location.href('user!complete.action?id=${user.id}')"
				value="完善资料" />
				<a href="user!complete.action?id=${user.id }">完善资料</a>
		</div>
	</form>
</body>
</html>
